package com.depthsdata.coe.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-12-27 11:41:50
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class BusinessNode implements java.io.Serializable {
    
    public BusinessNode() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long businessProcessId;	
	
	/**
	 * Attribute businessProcessId Be Seted Falg
	 */
	private boolean businessProcessIdSetted = false;
	
		/**
	 * Attribute businessProcessId is Null Falg
	 */
	private boolean businessProcessIdNull = false;
	
	   
    /**
	 * Get businessProcessId
	 * 
	 * @return long
	 */
	final public long getBusinessProcessId(){
	    
				
		return businessProcessId;
				
	}
	
	/**
	 * Set businessProcessId
	 * 
	 * @param long
	 */
	final public void setBusinessProcessId(long businessProcessId ){
		
				
		this.businessProcessId = businessProcessId;
				
		this.businessProcessIdSetted = true;
		
				
				
		this.setBusinessProcessIdNull(false);
				
				
	}
	
	/**
	 * Get businessProcessId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessProcessIdSetted(){
		return this.businessProcessIdSetted;
	}
	
		
	/**
	 * Set businessProcessId Null
	 * 
	 */
	final public void setBusinessProcessIdNull(){
			
		this.businessProcessIdNull = true;
		
	}	
	
	final public void setBusinessProcessIdNull(boolean aNullFlag){
			
		this.businessProcessIdNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessProcessIdNull(){
			
		return this.businessProcessIdNull;
		
	}
	
    	
	   
		
		
		
	private long parentBusinessNodeId;	
	
	/**
	 * Attribute parentBusinessNodeId Be Seted Falg
	 */
	private boolean parentBusinessNodeIdSetted = false;
	
		/**
	 * Attribute parentBusinessNodeId is Null Falg
	 */
	private boolean parentBusinessNodeIdNull = false;
	
	   
    /**
	 * Get parentBusinessNodeId
	 * 
	 * @return long
	 */
	final public long getParentBusinessNodeId(){
	    
				
		return parentBusinessNodeId;
				
	}
	
	/**
	 * Set parentBusinessNodeId
	 * 
	 * @param long
	 */
	final public void setParentBusinessNodeId(long parentBusinessNodeId ){
		
				
		this.parentBusinessNodeId = parentBusinessNodeId;
				
		this.parentBusinessNodeIdSetted = true;
		
				
				
		this.setParentBusinessNodeIdNull(false);
				
				
	}
	
	/**
	 * Get parentBusinessNodeId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isParentBusinessNodeIdSetted(){
		return this.parentBusinessNodeIdSetted;
	}
	
		
	/**
	 * Set parentBusinessNodeId Null
	 * 
	 */
	final public void setParentBusinessNodeIdNull(){
			
		this.parentBusinessNodeIdNull = true;
		
	}	
	
	final public void setParentBusinessNodeIdNull(boolean aNullFlag){
			
		this.parentBusinessNodeIdNull = aNullFlag;
		
	}	
	
	final public boolean isParentBusinessNodeIdNull(){
			
		return this.parentBusinessNodeIdNull;
		
	}
	
    	
	   
		
		
		
	private long preBusinesNodeId;	
	
	/**
	 * Attribute preBusinesNodeId Be Seted Falg
	 */
	private boolean preBusinesNodeIdSetted = false;
	
		/**
	 * Attribute preBusinesNodeId is Null Falg
	 */
	private boolean preBusinesNodeIdNull = false;
	
	   
    /**
	 * Get preBusinesNodeId
	 * 
	 * @return long
	 */
	final public long getPreBusinesNodeId(){
	    
				
		return preBusinesNodeId;
				
	}
	
	/**
	 * Set preBusinesNodeId
	 * 
	 * @param long
	 */
	final public void setPreBusinesNodeId(long preBusinesNodeId ){
		
				
		this.preBusinesNodeId = preBusinesNodeId;
				
		this.preBusinesNodeIdSetted = true;
		
				
				
		this.setPreBusinesNodeIdNull(false);
				
				
	}
	
	/**
	 * Get preBusinesNodeId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isPreBusinesNodeIdSetted(){
		return this.preBusinesNodeIdSetted;
	}
	
		
	/**
	 * Set preBusinesNodeId Null
	 * 
	 */
	final public void setPreBusinesNodeIdNull(){
			
		this.preBusinesNodeIdNull = true;
		
	}	
	
	final public void setPreBusinesNodeIdNull(boolean aNullFlag){
			
		this.preBusinesNodeIdNull = aNullFlag;
		
	}	
	
	final public boolean isPreBusinesNodeIdNull(){
			
		return this.preBusinesNodeIdNull;
		
	}
	
    	
	   
		
		
		
	private long nextBusinessNodeId;	
	
	/**
	 * Attribute nextBusinessNodeId Be Seted Falg
	 */
	private boolean nextBusinessNodeIdSetted = false;
	
		/**
	 * Attribute nextBusinessNodeId is Null Falg
	 */
	private boolean nextBusinessNodeIdNull = false;
	
	   
    /**
	 * Get nextBusinessNodeId
	 * 
	 * @return long
	 */
	final public long getNextBusinessNodeId(){
	    
				
		return nextBusinessNodeId;
				
	}
	
	/**
	 * Set nextBusinessNodeId
	 * 
	 * @param long
	 */
	final public void setNextBusinessNodeId(long nextBusinessNodeId ){
		
				
		this.nextBusinessNodeId = nextBusinessNodeId;
				
		this.nextBusinessNodeIdSetted = true;
		
				
				
		this.setNextBusinessNodeIdNull(false);
				
				
	}
	
	/**
	 * Get nextBusinessNodeId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isNextBusinessNodeIdSetted(){
		return this.nextBusinessNodeIdSetted;
	}
	
		
	/**
	 * Set nextBusinessNodeId Null
	 * 
	 */
	final public void setNextBusinessNodeIdNull(){
			
		this.nextBusinessNodeIdNull = true;
		
	}	
	
	final public void setNextBusinessNodeIdNull(boolean aNullFlag){
			
		this.nextBusinessNodeIdNull = aNullFlag;
		
	}	
	
	final public boolean isNextBusinessNodeIdNull(){
			
		return this.nextBusinessNodeIdNull;
		
	}
	
    	
	   
		
		
		
	private String businessNodeName;	
	
	/**
	 * Attribute businessNodeName Be Seted Falg
	 */
	private boolean businessNodeNameSetted = false;
	
		/**
	 * Attribute businessNodeName is Null Falg
	 */
	private boolean businessNodeNameNull = false;
	
	   
    /**
	 * Get businessNodeName
	 * 
	 * @return String
	 */
	final public String getBusinessNodeName(){
	    
				
		if(isBusinessNodeNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(businessNodeName);
		}
				
	}
	
	/**
	 * Set businessNodeName
	 * 
	 * @param String
	 */
	final public void setBusinessNodeName(String businessNodeName ){
		
				
		this.businessNodeName = StringUtils.trim(businessNodeName);
				
		this.businessNodeNameSetted = true;
		
				
				
		this.setBusinessNodeNameNull(this.businessNodeName == null);
				
				
	}
	
	/**
	 * Get businessNodeName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessNodeNameSetted(){
		return this.businessNodeNameSetted;
	}
	
		
	/**
	 * Set businessNodeName Null
	 * 
	 */
	final public void setBusinessNodeNameNull(){
			
		this.businessNodeNameNull = true;
		
	}	
	
	final public void setBusinessNodeNameNull(boolean aNullFlag){
			
		this.businessNodeNameNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessNodeNameNull(){
			
		return this.businessNodeNameNull;
		
	}
	
    	
	   
		
		
		
	private String businessNodeType;	
	
	/**
	 * Attribute businessNodeType Be Seted Falg
	 */
	private boolean businessNodeTypeSetted = false;
	
		/**
	 * Attribute businessNodeType is Null Falg
	 */
	private boolean businessNodeTypeNull = false;
	
	   
    /**
	 * Get businessNodeType
	 * 
	 * @return String
	 */
	final public String getBusinessNodeType(){
	    
				
		if(isBusinessNodeTypeNull()){
			return null;
		}
		else{
			return StringUtils.trim(businessNodeType);
		}
				
	}
	
	/**
	 * Set businessNodeType
	 * 
	 * @param String
	 */
	final public void setBusinessNodeType(String businessNodeType ){
		
				
		this.businessNodeType = StringUtils.trim(businessNodeType);
				
		this.businessNodeTypeSetted = true;
		
				
				
		this.setBusinessNodeTypeNull(this.businessNodeType == null);
				
				
	}
	
	/**
	 * Get businessNodeType Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessNodeTypeSetted(){
		return this.businessNodeTypeSetted;
	}
	
		
	/**
	 * Set businessNodeType Null
	 * 
	 */
	final public void setBusinessNodeTypeNull(){
			
		this.businessNodeTypeNull = true;
		
	}	
	
	final public void setBusinessNodeTypeNull(boolean aNullFlag){
			
		this.businessNodeTypeNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessNodeTypeNull(){
			
		return this.businessNodeTypeNull;
		
	}
	
    	
	   
		
		
		
	private long deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return long
	 */
	final public long getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param long
	 */
	final public void setDeleteFlag(long deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
	private String processDiagramNodeId;	
	
	/**
	 * Attribute processDiagramNodeId Be Seted Falg
	 */
	private boolean processDiagramNodeIdSetted = false;
	
		/**
	 * Attribute processDiagramNodeId is Null Falg
	 */
	private boolean processDiagramNodeIdNull = false;
	
	   
    /**
	 * Get processDiagramNodeId
	 * 
	 * @return String
	 */
	final public String getProcessDiagramNodeId(){
	    
				
		if(isProcessDiagramNodeIdNull()){
			return null;
		}
		else{
			return StringUtils.trim(processDiagramNodeId);
		}
				
	}
	
	/**
	 * Set processDiagramNodeId
	 * 
	 * @param String
	 */
	final public void setProcessDiagramNodeId(String processDiagramNodeId ){
		
				
		this.processDiagramNodeId = StringUtils.trim(processDiagramNodeId);
				
		this.processDiagramNodeIdSetted = true;
		
				
				
		this.setProcessDiagramNodeIdNull(this.processDiagramNodeId == null);
				
				
	}
	
	/**
	 * Get processDiagramNodeId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isProcessDiagramNodeIdSetted(){
		return this.processDiagramNodeIdSetted;
	}
	
		
	/**
	 * Set processDiagramNodeId Null
	 * 
	 */
	final public void setProcessDiagramNodeIdNull(){
			
		this.processDiagramNodeIdNull = true;
		
	}	
	
	final public void setProcessDiagramNodeIdNull(boolean aNullFlag){
			
		this.processDiagramNodeIdNull = aNullFlag;
		
	}	
	
	final public boolean isProcessDiagramNodeIdNull(){
			
		return this.processDiagramNodeIdNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof BusinessNode) == false){
			return false;
		}
		BusinessNode other = (BusinessNode) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("businessProcessId=");
		buffer.append(this.businessProcessId);
		        
		buffer.append("parentBusinessNodeId=");
		buffer.append(this.parentBusinessNodeId);
		        
		buffer.append("preBusinesNodeId=");
		buffer.append(this.preBusinesNodeId);
		        
		buffer.append("nextBusinessNodeId=");
		buffer.append(this.nextBusinessNodeId);
		        
		buffer.append("businessNodeName=");
		buffer.append(this.businessNodeName);
		        
		buffer.append("businessNodeType=");
		buffer.append(this.businessNodeType);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("processDiagramNodeId=");
		buffer.append(this.processDiagramNodeId);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}